package com.learn.annotation_config.resource;

import com.learn.annotation_config.resource.beans.service.UserServiceImpl;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.ComponentScan;

@ComponentScan
public class ResourceApplication {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext(ResourceApplication.class);
        applicationContext.getBean("userService", UserServiceImpl.class).show();
    }
}
